var _oActMsgPopup = null;

function DisplayActionMsg(sMsg, iWidth, iHeight)
{
if (!IsNull(sMsg) || IsNull(_oActMsgPopup))
{

_oActMsgPopup = window.createPopup();

_oActMsgPopup.document.createStyleSheet(prependOrgName("/_common/styles/global.css.aspx?lcid=" + USER_LANGUAGE_CODE));
_oActMsgPopup.document.createStyleSheet(prependOrgName("/_common/styles/fonts.aspx?lcid=" + USER_LANGUAGE_CODE));

var oActMsg = _oActMsgPopup.document.createElement("DIV");
_oActMsgPopup.document.body.appendChild(oActMsg);

with(oActMsg)
{
className = "actionMsgBox";

with(style)
{
width = "100%";
height = "100%";
backgroundColor = "#ffffee";
border = "2px solid #000000";
}


innerHTML =  "<table width=100% height=100%><tr><td style='font: bold 15px;text-align: center; vertical-align: middle; cursor: wait; color: #000099'>" + sMsg + "<br><br></td></tr></table>";
}
}


_oActMsgPopup.show((window.document.body.clientWidth - iWidth)/2,
(window.document.body.clientHeight - iHeight)/2,
iWidth, iHeight, document.body);
}

function HideActionMsg()
{

if (!IsNull(_oActMsgPopup))
{
_oActMsgPopup.hide();
}
}
